Selenium WebDriver Recipes in Ruby by Zhimin Zhan

Selenium WebDriver Recipes in Ruby by Zhimin Zhan

Author:Zhimin Zhan [Zhimin Zhan]
Language: eng
Format: epub
Publisher: leanpub.com
Published: 2013-10-18T00:00:00+00:00


17. Advanced User Interactions

The ActionBuilder in Selenium WebDriver provides a way to set up and perform complex user interactions. Specifically, grouping a series of keyboard and mouse operations and sending to the browser.

Mouse interactions

click

click_and_hold

context_click

double_click

drag_and_drop

drag_and_drop_by

move_by

move_to

release

Keyboard interactions

key_down

key_up

send_keys

Please note, the method names are slightly different in another language. For example, move_to in Java is moveToElement.

The usage

driver.action. + one or more above operations + .perform

Check out the ActionBuilder API for more.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.